package com.hmall.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * Feign拦截器
 */
public class FeignClientInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        //基于Feign的拦截器添加请求头authorization=2
        requestTemplate.header("authorization","2");
    }
}
